
public class TestBuildChain {
    public static void main(String[] args) {

        LoginUser loginUser = new LoginUser();

        loginUser.setLoginName("孤狼1号");
        loginUser.setPassword("123456");
        loginUser.setRoleName("admin");
        loginUser.setPermission("admin");

        Builder<BuildHandler> builder = new Builder();
        builder.addHandler(new VerifyAccountBuildHandler());
        builder.addHandler(new VerifyRoleBuildHandler());
        builder.addHandler(new VerifyPermissionBuildHandler());

        builder.build().doHandler(loginUser);
    }
}